package com.charonmc.parkour;

import org.bukkit.Location;
import org.bukkit.entity.Player;

import java.util.HashMap;

public class ParkourManager {
    public static HashMap<Player, Integer> parkourPlayers = new HashMap<>();
    public static HashMap<Player, Location> playerLocation = new HashMap<>();
    public static HashMap<Player, Integer> playerParkourRecord = new HashMap<>();
    //1: start 2:end
    public static HashMap<Player, Integer> adminSet = new HashMap<>();

    public static void removePlayer(Player player){
        parkourPlayers.remove(player);
        player.teleport(player.getPlayer().getWorld().getSpawnLocation());
    }

    public static int getPlayerRecordTick(Player player){
        return playerParkourRecord.get(player);
    }

    public static Integer getPlayerTimeTick(Player player){
        return parkourPlayers.get(player);
    }
}
